local tanhu = fk.CreateSkill({
    name = "sj6__tanhu",
  })
  
  Fk:loadTranslationTable{
    ["sj6__tanhu"] = "探虎",
    [":sj6__tanhu"] = "出牌阶段限一次，你可以观看一名其他角色的手牌并弃置其中的【顺手牵羊】。",
    
    ["#sj6__tanhu"] = "探虎：你可以观看一名其他角色的手牌并弃置其中的【顺手牵羊】",
    ["#sj6__tanhu-view"] = "探虎：观看%dest的手牌",

    ["$sj6__tanhu1"] = "此速攻可胜，切莫筑室道谋！",
    ["$sj6__tanhu2"] = "生死存亡之道，不可不察！",
  }

  tanhu:addEffect("active", {
    anim_type = "control",
    prompt = "#sj6__tanhu",
    target_num = 1,
    can_use = function(self, player)
      return player:usedSkillTimes(tanhu.name, Player.HistoryPhase) == 0
    end,
    card_filter = Util.FalseFunc,
    target_filter = function (self, player, to_select, selected, selected_cards)
      return #selected == 0 and to_select ~= player and not to_select:isKongcheng()
    end,
    on_use = function(self, room, effect)
      local player = effect.from
      local target = effect.tos[1]
      local cards = target:getCardIds("h")
      local hearts = table.filter(cards, function (id) return Fk:getCardById(id).name == "snatch" end)
      room:viewCards(player,{
        cards = cards,
        skill_name = tanhu.name,
        prompt = "#sj6__tanhu-view::"..target.id,
      })
      if #hearts > 0 then
        room:throwCard(hearts, tanhu.name, target, player)
      end
    end,
  })

  return tanhu